// pages/demo12/demo12.js
Page({
  data: {
    gender:'',
    list:[
      {
        id:1,
        name:'苹果',
        value:'apple'
      },
      {
        id:2,
        name:'葡萄',
        value:'grape'
      },
      {
        id:3,
        name:'香蕉',
        value:'bananer'
      }
    ],
    checkList:[]
  },
  bindChange(e){
    console.log(e);
    let gender = e.detail.value
    this.setData({
      gender
    })
  },
  handleItemChange(e){
    const checkList=e.detail.value;
    this.setData({
      checkList
    })
  }
})